package com.quanquan.service;

import com.quanquan.entity.LessonInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface LessonInfoService {

    public void save(LessonInfo lessonInfo);

//    public List<LessonInfo> findByGrade(String grade, Pageable pageable);

    public LessonInfo findById(Long id);

    public List<LessonInfo> findByLessonNameContaining(String lessonName);

    public List<LessonInfo> findLesson(String grade,Long id);

    public Page<LessonInfo> findAll(Pageable pageable);

    public Long countLesson(String grade);

    public Page<LessonInfo> findByGradeLike(String grade, Pageable pageable);

    public List<LessonInfo> findKeywords(String keywords);

    public List<LessonInfo> findAll();
}
